FROM tableagent-registry.cn-beijing.cr.aliyuncs.com/wedding/pytorch-cuda:1.0 

LABEL auth="zhough<zhough@zetyun.com>" 

# 设置环境变量
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# 设置环境变量为东八区
ENV TZ=Asia/Shanghai
ENV http_proxy=''
ENV https_proxy=''

WORKDIR /app

# COPY /mnt/ydyd/lora-scripts-v1.8.5/requirements.txt /app/requirements.txt
# COPY /mnt/ydyd/lora-scripts-v1.8.5/sd-scripts/requirements.txt /app/requirements1.txt

COPY requirements.txt requirements1.txt /app/

RUN unset http_proxy https_proxy && \
    apt-get update && apt-get install -y libgl1-mesa-glx \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* \
    && (cat requirements.txt; echo "xformers==0.0.21"; cat requirements1.txt; echo '') > combined.txt && \
    pip3 install --no-cache-dir -r combined.txt -i https://pypi.tuna.tsinghua.edu.cn/simple && \
    rm -rf combined.txt


# docker build -t tableagent-registry.cn-beijing.cr.aliyuncs.com/wedding/wedding-train:1.0.0 .

# docker push tableagent-registry.cn-beijing.cr.aliyuncs.com/wedding/wedding-train:1.0.0    